package com.luchao.springbootquartz.quartz;


import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class SchedulerQuartzJob2  implements Job {

    public void before(){
        System.out.println("马上开始执行任务2！");
    }
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        before();
        System.out.println("开始2："+System.currentTimeMillis());
        // TODO 业务
        System.out.println("结束2："+System.currentTimeMillis());
        after();
    }

    public void after(){
        System.out.println("任务2执行完了！");
    }

}
